package com.example.service;

import com.example.dao.ExaminationMapper;
import com.example.domain.Examination;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ExaminationService {
    @Autowired
    private ExaminationMapper examinationMapper;

    public List<Examination> listAll(int patient_id) {
        return examinationMapper.listAll(patient_id);
    }




    public int insert(Examination examination) {
        return examinationMapper.insert(examination);
    }

    public int update(Examination examination) {
        return examinationMapper.update(examination);
    }

    public Examination getById(int id) {
        return examinationMapper.getById(id);
    }



}
